/**
 * This is a generated class and is not intended for modification.  To customize behavior
 * of this value object you may modify the generated sub-class of this class - VoSalesConformation.as.
 */

package com.model.valueObjects
{
import com.adobe.fiber.services.IFiberManagingService;
import com.adobe.fiber.util.FiberUtils;
import com.adobe.fiber.valueobjects.IValueObject;
import flash.events.Event;
import flash.events.EventDispatcher;
import mx.binding.utils.ChangeWatcher;
import mx.collections.ArrayCollection;
import mx.events.CollectionEvent;
import mx.events.PropertyChangeEvent;
import mx.validators.ValidationResult;

import flash.net.registerClassAlias;
import flash.net.getClassByAlias;
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.valueobjects.IPropertyIterator;
import com.adobe.fiber.valueobjects.AvailablePropertyIterator;

use namespace model_internal;

[ExcludeClass]
public class _Super_VoSalesConformation extends flash.events.EventDispatcher implements com.adobe.fiber.valueobjects.IValueObject
{
    model_internal static function initRemoteClassAliasSingle(cz:Class) : void
    {
        try
        {
            if (flash.net.getClassByAlias("VoSalesConformation") == null)
            {
                flash.net.registerClassAlias("VoSalesConformation", cz);
            }
        }
        catch (e:Error)
        {
            flash.net.registerClassAlias("VoSalesConformation", cz);
        }
    }

    model_internal static function initRemoteClassAliasAllRelated() : void
    {
    }

    model_internal var _dminternal_model : _VoSalesConformationEntityMetadata;

    /**
     * properties
     */
    private var _internal_warehouse_name : ArrayCollection;
    private var _internal_do_pro_qty : ArrayCollection;
    private var _internal_tot_bal_qty : int;
    private var _internal_balance_qty : ArrayCollection;
    private var _internal_isAllocated : ArrayCollection;
    private var _internal_available_do_qty : int;
    private var _internal_mapped_po_list : ArrayCollection;
    private var _internal_other_part_no : ArrayCollection;
    private var _internal_pro_name : ArrayCollection;
    private var _internal_total_qty : int;
    private var _internal_sc_gst : Number;
    private var _internal_sales_con_date : String;
    private var _internal_cre_userid_fk : int;
    private var _internal_quotation_serialnumber_fk : ArrayCollection;
    private var _internal_part_number : ArrayCollection;
    private var _internal_detserialnumber : ArrayCollection;
    private var _internal_serialnumber : int;
    private var _internal_quotation_code : ArrayCollection;
    private var _internal_pro_description : ArrayCollection;
    private var _internal_quot_pro_qty : ArrayCollection;
    private var _internal_pro_qty : ArrayCollection;
    private var _internal_activestatus : Boolean;
    private var _internal_currency_serialnumber_fk : int;
    private var _internal_current_rate : Number;
    private var _internal_default_price : ArrayCollection;
    private var _internal_client_name : String;
    private var _internal_quot_pro_serialnumber_fk : ArrayCollection;
    private var _internal_model_no : ArrayCollection;
    private var _internal_total_amount : Number;
    private var _internal_cre_datetime : String;
    private var _internal_price_per_unit : ArrayCollection;
    private var _internal_quot_sc_serialnumber_fk : ArrayCollection;
    private var _internal_sgd_listprice : ArrayCollection;
    private var _internal_pro_status : ArrayCollection;
    private var _internal_pro_total_price : ArrayCollection;
    private var _internal_sc_serialnumber_fk : ArrayCollection;
    private var _internal_stamp_number : ArrayCollection;
    private var _internal_base_currency_detserialnumber_fk : ArrayCollection;
    private var _internal_sales_type : ArrayCollection;
    private var _internal_pro_serialnumber_fk : ArrayCollection;
    private var _internal_delivery_loc : ArrayCollection;
    private var _internal_expected_datetime : String;
    private var _internal_quot_detserialnumber_fk : ArrayCollection;
    private var _internal_quot_det_sc_serialnumber : ArrayCollection;
    private var _internal_sc_term : int;
    private var _internal_sales_con_status : String;
    private var _internal_no_of_days : Number;
    private var _internal_pro_detserialnumber : ArrayCollection;
    private var _internal_sales_con_code : String;
    private var _internal_customer_serialnumber_fk : Number;
    private var _internal_price_list : ArrayCollection;
    private var _internal_sc_remarks : String;
    private var _internal_warehouse_serialnumber_fk : ArrayCollection;

    private static var emptyArray:Array = new Array();

    // Change this value according to your application's floating-point precision
    private static var epsilon:Number = 0.0001;

    /**
     * derived property cache initialization
     */
    model_internal var _cacheInitialized_isValid:Boolean = false;

    model_internal var _changeWatcherArray:Array = new Array();

    public function _Super_VoSalesConformation()
    {
        _model = new _VoSalesConformationEntityMetadata(this);

        // Bind to own data properties for cache invalidation triggering
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "warehouse_name", model_internal::setterListenerWarehouse_name));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "do_pro_qty", model_internal::setterListenerDo_pro_qty));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "balance_qty", model_internal::setterListenerBalance_qty));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "isAllocated", model_internal::setterListenerIsAllocated));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "mapped_po_list", model_internal::setterListenerMapped_po_list));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "other_part_no", model_internal::setterListenerOther_part_no));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "pro_name", model_internal::setterListenerPro_name));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "sales_con_date", model_internal::setterListenerSales_con_date));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "quotation_serialnumber_fk", model_internal::setterListenerQuotation_serialnumber_fk));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "part_number", model_internal::setterListenerPart_number));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "detserialnumber", model_internal::setterListenerDetserialnumber));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "quotation_code", model_internal::setterListenerQuotation_code));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "pro_description", model_internal::setterListenerPro_description));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "quot_pro_qty", model_internal::setterListenerQuot_pro_qty));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "pro_qty", model_internal::setterListenerPro_qty));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "default_price", model_internal::setterListenerDefault_price));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "client_name", model_internal::setterListenerClient_name));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "quot_pro_serialnumber_fk", model_internal::setterListenerQuot_pro_serialnumber_fk));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "model_no", model_internal::setterListenerModel_no));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "cre_datetime", model_internal::setterListenerCre_datetime));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "price_per_unit", model_internal::setterListenerPrice_per_unit));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "quot_sc_serialnumber_fk", model_internal::setterListenerQuot_sc_serialnumber_fk));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "sgd_listprice", model_internal::setterListenerSgd_listprice));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "pro_status", model_internal::setterListenerPro_status));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "pro_total_price", model_internal::setterListenerPro_total_price));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "sc_serialnumber_fk", model_internal::setterListenerSc_serialnumber_fk));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "stamp_number", model_internal::setterListenerStamp_number));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "base_currency_detserialnumber_fk", model_internal::setterListenerBase_currency_detserialnumber_fk));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "sales_type", model_internal::setterListenerSales_type));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "pro_serialnumber_fk", model_internal::setterListenerPro_serialnumber_fk));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "delivery_loc", model_internal::setterListenerDelivery_loc));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "expected_datetime", model_internal::setterListenerExpected_datetime));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "quot_detserialnumber_fk", model_internal::setterListenerQuot_detserialnumber_fk));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "quot_det_sc_serialnumber", model_internal::setterListenerQuot_det_sc_serialnumber));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "sales_con_status", model_internal::setterListenerSales_con_status));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "pro_detserialnumber", model_internal::setterListenerPro_detserialnumber));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "sales_con_code", model_internal::setterListenerSales_con_code));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "price_list", model_internal::setterListenerPrice_list));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "sc_remarks", model_internal::setterListenerSc_remarks));
        model_internal::_changeWatcherArray.push(mx.binding.utils.ChangeWatcher.watch(this, "warehouse_serialnumber_fk", model_internal::setterListenerWarehouse_serialnumber_fk));

    }

    /**
     * data property getters
     */

    [Bindable(event="propertyChange")]
    public function get warehouse_name() : ArrayCollection
    {
        return _internal_warehouse_name;
    }

    [Bindable(event="propertyChange")]
    public function get do_pro_qty() : ArrayCollection
    {
        return _internal_do_pro_qty;
    }

    [Bindable(event="propertyChange")]
    public function get tot_bal_qty() : int
    {
        return _internal_tot_bal_qty;
    }

    [Bindable(event="propertyChange")]
    public function get balance_qty() : ArrayCollection
    {
        return _internal_balance_qty;
    }

    [Bindable(event="propertyChange")]
    public function get isAllocated() : ArrayCollection
    {
        return _internal_isAllocated;
    }

    [Bindable(event="propertyChange")]
    public function get available_do_qty() : int
    {
        return _internal_available_do_qty;
    }

    [Bindable(event="propertyChange")]
    public function get mapped_po_list() : ArrayCollection
    {
        return _internal_mapped_po_list;
    }

    [Bindable(event="propertyChange")]
    public function get other_part_no() : ArrayCollection
    {
        return _internal_other_part_no;
    }

    [Bindable(event="propertyChange")]
    public function get pro_name() : ArrayCollection
    {
        return _internal_pro_name;
    }

    [Bindable(event="propertyChange")]
    public function get total_qty() : int
    {
        return _internal_total_qty;
    }

    [Bindable(event="propertyChange")]
    public function get sc_gst() : Number
    {
        return _internal_sc_gst;
    }

    [Bindable(event="propertyChange")]
    public function get sales_con_date() : String
    {
        return _internal_sales_con_date;
    }

    [Bindable(event="propertyChange")]
    public function get cre_userid_fk() : int
    {
        return _internal_cre_userid_fk;
    }

    [Bindable(event="propertyChange")]
    public function get quotation_serialnumber_fk() : ArrayCollection
    {
        return _internal_quotation_serialnumber_fk;
    }

    [Bindable(event="propertyChange")]
    public function get part_number() : ArrayCollection
    {
        return _internal_part_number;
    }

    [Bindable(event="propertyChange")]
    public function get detserialnumber() : ArrayCollection
    {
        return _internal_detserialnumber;
    }

    [Bindable(event="propertyChange")]
    public function get serialnumber() : int
    {
        return _internal_serialnumber;
    }

    [Bindable(event="propertyChange")]
    public function get quotation_code() : ArrayCollection
    {
        return _internal_quotation_code;
    }

    [Bindable(event="propertyChange")]
    public function get pro_description() : ArrayCollection
    {
        return _internal_pro_description;
    }

    [Bindable(event="propertyChange")]
    public function get quot_pro_qty() : ArrayCollection
    {
        return _internal_quot_pro_qty;
    }

    [Bindable(event="propertyChange")]
    public function get pro_qty() : ArrayCollection
    {
        return _internal_pro_qty;
    }

    [Bindable(event="propertyChange")]
    public function get activestatus() : Boolean
    {
        return _internal_activestatus;
    }

    [Bindable(event="propertyChange")]
    public function get currency_serialnumber_fk() : int
    {
        return _internal_currency_serialnumber_fk;
    }

    [Bindable(event="propertyChange")]
    public function get current_rate() : Number
    {
        return _internal_current_rate;
    }

    [Bindable(event="propertyChange")]
    public function get default_price() : ArrayCollection
    {
        return _internal_default_price;
    }

    [Bindable(event="propertyChange")]
    public function get client_name() : String
    {
        return _internal_client_name;
    }

    [Bindable(event="propertyChange")]
    public function get quot_pro_serialnumber_fk() : ArrayCollection
    {
        return _internal_quot_pro_serialnumber_fk;
    }

    [Bindable(event="propertyChange")]
    public function get model_no() : ArrayCollection
    {
        return _internal_model_no;
    }

    [Bindable(event="propertyChange")]
    public function get total_amount() : Number
    {
        return _internal_total_amount;
    }

    [Bindable(event="propertyChange")]
    public function get cre_datetime() : String
    {
        return _internal_cre_datetime;
    }

    [Bindable(event="propertyChange")]
    public function get price_per_unit() : ArrayCollection
    {
        return _internal_price_per_unit;
    }

    [Bindable(event="propertyChange")]
    public function get quot_sc_serialnumber_fk() : ArrayCollection
    {
        return _internal_quot_sc_serialnumber_fk;
    }

    [Bindable(event="propertyChange")]
    public function get sgd_listprice() : ArrayCollection
    {
        return _internal_sgd_listprice;
    }

    [Bindable(event="propertyChange")]
    public function get pro_status() : ArrayCollection
    {
        return _internal_pro_status;
    }

    [Bindable(event="propertyChange")]
    public function get pro_total_price() : ArrayCollection
    {
        return _internal_pro_total_price;
    }

    [Bindable(event="propertyChange")]
    public function get sc_serialnumber_fk() : ArrayCollection
    {
        return _internal_sc_serialnumber_fk;
    }

    [Bindable(event="propertyChange")]
    public function get stamp_number() : ArrayCollection
    {
        return _internal_stamp_number;
    }

    [Bindable(event="propertyChange")]
    public function get base_currency_detserialnumber_fk() : ArrayCollection
    {
        return _internal_base_currency_detserialnumber_fk;
    }

    [Bindable(event="propertyChange")]
    public function get sales_type() : ArrayCollection
    {
        return _internal_sales_type;
    }

    [Bindable(event="propertyChange")]
    public function get pro_serialnumber_fk() : ArrayCollection
    {
        return _internal_pro_serialnumber_fk;
    }

    [Bindable(event="propertyChange")]
    public function get delivery_loc() : ArrayCollection
    {
        return _internal_delivery_loc;
    }

    [Bindable(event="propertyChange")]
    public function get expected_datetime() : String
    {
        return _internal_expected_datetime;
    }

    [Bindable(event="propertyChange")]
    public function get quot_detserialnumber_fk() : ArrayCollection
    {
        return _internal_quot_detserialnumber_fk;
    }

    [Bindable(event="propertyChange")]
    public function get quot_det_sc_serialnumber() : ArrayCollection
    {
        return _internal_quot_det_sc_serialnumber;
    }

    [Bindable(event="propertyChange")]
    public function get sc_term() : int
    {
        return _internal_sc_term;
    }

    [Bindable(event="propertyChange")]
    public function get sales_con_status() : String
    {
        return _internal_sales_con_status;
    }

    [Bindable(event="propertyChange")]
    public function get no_of_days() : Number
    {
        return _internal_no_of_days;
    }

    [Bindable(event="propertyChange")]
    public function get pro_detserialnumber() : ArrayCollection
    {
        return _internal_pro_detserialnumber;
    }

    [Bindable(event="propertyChange")]
    public function get sales_con_code() : String
    {
        return _internal_sales_con_code;
    }

    [Bindable(event="propertyChange")]
    public function get customer_serialnumber_fk() : Number
    {
        return _internal_customer_serialnumber_fk;
    }

    [Bindable(event="propertyChange")]
    public function get price_list() : ArrayCollection
    {
        return _internal_price_list;
    }

    [Bindable(event="propertyChange")]
    public function get sc_remarks() : String
    {
        return _internal_sc_remarks;
    }

    [Bindable(event="propertyChange")]
    public function get warehouse_serialnumber_fk() : ArrayCollection
    {
        return _internal_warehouse_serialnumber_fk;
    }

    /**
     * data property setters
     */

    public function set warehouse_name(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_warehouse_name;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_warehouse_name = value;
            }
            else if (value is Array)
            {
                _internal_warehouse_name = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of warehouse_name must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "warehouse_name", oldValue, _internal_warehouse_name));
        }
    }

    public function set do_pro_qty(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_do_pro_qty;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_do_pro_qty = value;
            }
            else if (value is Array)
            {
                _internal_do_pro_qty = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of do_pro_qty must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "do_pro_qty", oldValue, _internal_do_pro_qty));
        }
    }

    public function set tot_bal_qty(value:int) : void
    {
        var oldValue:int = _internal_tot_bal_qty;
        if (oldValue !== value)
        {
            _internal_tot_bal_qty = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "tot_bal_qty", oldValue, _internal_tot_bal_qty));
        }
    }

    public function set balance_qty(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_balance_qty;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_balance_qty = value;
            }
            else if (value is Array)
            {
                _internal_balance_qty = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of balance_qty must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "balance_qty", oldValue, _internal_balance_qty));
        }
    }

    public function set isAllocated(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_isAllocated;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_isAllocated = value;
            }
            else if (value is Array)
            {
                _internal_isAllocated = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of isAllocated must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "isAllocated", oldValue, _internal_isAllocated));
        }
    }

    public function set available_do_qty(value:int) : void
    {
        var oldValue:int = _internal_available_do_qty;
        if (oldValue !== value)
        {
            _internal_available_do_qty = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "available_do_qty", oldValue, _internal_available_do_qty));
        }
    }

    public function set mapped_po_list(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_mapped_po_list;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_mapped_po_list = value;
            }
            else if (value is Array)
            {
                _internal_mapped_po_list = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of mapped_po_list must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "mapped_po_list", oldValue, _internal_mapped_po_list));
        }
    }

    public function set other_part_no(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_other_part_no;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_other_part_no = value;
            }
            else if (value is Array)
            {
                _internal_other_part_no = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of other_part_no must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "other_part_no", oldValue, _internal_other_part_no));
        }
    }

    public function set pro_name(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_pro_name;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_pro_name = value;
            }
            else if (value is Array)
            {
                _internal_pro_name = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of pro_name must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_name", oldValue, _internal_pro_name));
        }
    }

    public function set total_qty(value:int) : void
    {
        var oldValue:int = _internal_total_qty;
        if (oldValue !== value)
        {
            _internal_total_qty = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "total_qty", oldValue, _internal_total_qty));
        }
    }

    public function set sc_gst(value:Number) : void
    {
        var oldValue:Number = _internal_sc_gst;
        if (isNaN(_internal_sc_gst) == true || Math.abs(oldValue - value) > epsilon)
        {
            _internal_sc_gst = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sc_gst", oldValue, _internal_sc_gst));
        }
    }

    public function set sales_con_date(value:String) : void
    {
        var oldValue:String = _internal_sales_con_date;
        if (oldValue !== value)
        {
            _internal_sales_con_date = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sales_con_date", oldValue, _internal_sales_con_date));
        }
    }

    public function set cre_userid_fk(value:int) : void
    {
        var oldValue:int = _internal_cre_userid_fk;
        if (oldValue !== value)
        {
            _internal_cre_userid_fk = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cre_userid_fk", oldValue, _internal_cre_userid_fk));
        }
    }

    public function set quotation_serialnumber_fk(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_quotation_serialnumber_fk;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_quotation_serialnumber_fk = value;
            }
            else if (value is Array)
            {
                _internal_quotation_serialnumber_fk = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of quotation_serialnumber_fk must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "quotation_serialnumber_fk", oldValue, _internal_quotation_serialnumber_fk));
        }
    }

    public function set part_number(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_part_number;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_part_number = value;
            }
            else if (value is Array)
            {
                _internal_part_number = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of part_number must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "part_number", oldValue, _internal_part_number));
        }
    }

    public function set detserialnumber(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_detserialnumber;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_detserialnumber = value;
            }
            else if (value is Array)
            {
                _internal_detserialnumber = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of detserialnumber must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "detserialnumber", oldValue, _internal_detserialnumber));
        }
    }

    public function set serialnumber(value:int) : void
    {
        var oldValue:int = _internal_serialnumber;
        if (oldValue !== value)
        {
            _internal_serialnumber = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "serialnumber", oldValue, _internal_serialnumber));
        }
    }

    public function set quotation_code(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_quotation_code;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_quotation_code = value;
            }
            else if (value is Array)
            {
                _internal_quotation_code = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of quotation_code must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "quotation_code", oldValue, _internal_quotation_code));
        }
    }

    public function set pro_description(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_pro_description;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_pro_description = value;
            }
            else if (value is Array)
            {
                _internal_pro_description = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of pro_description must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_description", oldValue, _internal_pro_description));
        }
    }

    public function set quot_pro_qty(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_quot_pro_qty;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_quot_pro_qty = value;
            }
            else if (value is Array)
            {
                _internal_quot_pro_qty = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of quot_pro_qty must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "quot_pro_qty", oldValue, _internal_quot_pro_qty));
        }
    }

    public function set pro_qty(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_pro_qty;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_pro_qty = value;
            }
            else if (value is Array)
            {
                _internal_pro_qty = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of pro_qty must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_qty", oldValue, _internal_pro_qty));
        }
    }

    public function set activestatus(value:Boolean) : void
    {
        var oldValue:Boolean = _internal_activestatus;
        if (oldValue !== value)
        {
            _internal_activestatus = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "activestatus", oldValue, _internal_activestatus));
        }
    }

    public function set currency_serialnumber_fk(value:int) : void
    {
        var oldValue:int = _internal_currency_serialnumber_fk;
        if (oldValue !== value)
        {
            _internal_currency_serialnumber_fk = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "currency_serialnumber_fk", oldValue, _internal_currency_serialnumber_fk));
        }
    }

    public function set current_rate(value:Number) : void
    {
        var oldValue:Number = _internal_current_rate;
        if (isNaN(_internal_current_rate) == true || Math.abs(oldValue - value) > epsilon)
        {
            _internal_current_rate = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "current_rate", oldValue, _internal_current_rate));
        }
    }

    public function set default_price(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_default_price;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_default_price = value;
            }
            else if (value is Array)
            {
                _internal_default_price = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of default_price must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "default_price", oldValue, _internal_default_price));
        }
    }

    public function set client_name(value:String) : void
    {
        var oldValue:String = _internal_client_name;
        if (oldValue !== value)
        {
            _internal_client_name = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "client_name", oldValue, _internal_client_name));
        }
    }

    public function set quot_pro_serialnumber_fk(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_quot_pro_serialnumber_fk;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_quot_pro_serialnumber_fk = value;
            }
            else if (value is Array)
            {
                _internal_quot_pro_serialnumber_fk = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of quot_pro_serialnumber_fk must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "quot_pro_serialnumber_fk", oldValue, _internal_quot_pro_serialnumber_fk));
        }
    }

    public function set model_no(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_model_no;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_model_no = value;
            }
            else if (value is Array)
            {
                _internal_model_no = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of model_no must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "model_no", oldValue, _internal_model_no));
        }
    }

    public function set total_amount(value:Number) : void
    {
        var oldValue:Number = _internal_total_amount;
        if (isNaN(_internal_total_amount) == true || Math.abs(oldValue - value) > epsilon)
        {
            _internal_total_amount = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "total_amount", oldValue, _internal_total_amount));
        }
    }

    public function set cre_datetime(value:String) : void
    {
        var oldValue:String = _internal_cre_datetime;
        if (oldValue !== value)
        {
            _internal_cre_datetime = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cre_datetime", oldValue, _internal_cre_datetime));
        }
    }

    public function set price_per_unit(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_price_per_unit;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_price_per_unit = value;
            }
            else if (value is Array)
            {
                _internal_price_per_unit = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of price_per_unit must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "price_per_unit", oldValue, _internal_price_per_unit));
        }
    }

    public function set quot_sc_serialnumber_fk(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_quot_sc_serialnumber_fk;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_quot_sc_serialnumber_fk = value;
            }
            else if (value is Array)
            {
                _internal_quot_sc_serialnumber_fk = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of quot_sc_serialnumber_fk must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "quot_sc_serialnumber_fk", oldValue, _internal_quot_sc_serialnumber_fk));
        }
    }

    public function set sgd_listprice(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_sgd_listprice;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_sgd_listprice = value;
            }
            else if (value is Array)
            {
                _internal_sgd_listprice = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of sgd_listprice must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sgd_listprice", oldValue, _internal_sgd_listprice));
        }
    }

    public function set pro_status(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_pro_status;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_pro_status = value;
            }
            else if (value is Array)
            {
                _internal_pro_status = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of pro_status must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_status", oldValue, _internal_pro_status));
        }
    }

    public function set pro_total_price(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_pro_total_price;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_pro_total_price = value;
            }
            else if (value is Array)
            {
                _internal_pro_total_price = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of pro_total_price must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_total_price", oldValue, _internal_pro_total_price));
        }
    }

    public function set sc_serialnumber_fk(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_sc_serialnumber_fk;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_sc_serialnumber_fk = value;
            }
            else if (value is Array)
            {
                _internal_sc_serialnumber_fk = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of sc_serialnumber_fk must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sc_serialnumber_fk", oldValue, _internal_sc_serialnumber_fk));
        }
    }

    public function set stamp_number(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_stamp_number;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_stamp_number = value;
            }
            else if (value is Array)
            {
                _internal_stamp_number = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of stamp_number must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "stamp_number", oldValue, _internal_stamp_number));
        }
    }

    public function set base_currency_detserialnumber_fk(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_base_currency_detserialnumber_fk;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_base_currency_detserialnumber_fk = value;
            }
            else if (value is Array)
            {
                _internal_base_currency_detserialnumber_fk = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of base_currency_detserialnumber_fk must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "base_currency_detserialnumber_fk", oldValue, _internal_base_currency_detserialnumber_fk));
        }
    }

    public function set sales_type(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_sales_type;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_sales_type = value;
            }
            else if (value is Array)
            {
                _internal_sales_type = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of sales_type must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sales_type", oldValue, _internal_sales_type));
        }
    }

    public function set pro_serialnumber_fk(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_pro_serialnumber_fk;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_pro_serialnumber_fk = value;
            }
            else if (value is Array)
            {
                _internal_pro_serialnumber_fk = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of pro_serialnumber_fk must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_serialnumber_fk", oldValue, _internal_pro_serialnumber_fk));
        }
    }

    public function set delivery_loc(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_delivery_loc;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_delivery_loc = value;
            }
            else if (value is Array)
            {
                _internal_delivery_loc = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of delivery_loc must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "delivery_loc", oldValue, _internal_delivery_loc));
        }
    }

    public function set expected_datetime(value:String) : void
    {
        var oldValue:String = _internal_expected_datetime;
        if (oldValue !== value)
        {
            _internal_expected_datetime = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "expected_datetime", oldValue, _internal_expected_datetime));
        }
    }

    public function set quot_detserialnumber_fk(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_quot_detserialnumber_fk;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_quot_detserialnumber_fk = value;
            }
            else if (value is Array)
            {
                _internal_quot_detserialnumber_fk = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of quot_detserialnumber_fk must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "quot_detserialnumber_fk", oldValue, _internal_quot_detserialnumber_fk));
        }
    }

    public function set quot_det_sc_serialnumber(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_quot_det_sc_serialnumber;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_quot_det_sc_serialnumber = value;
            }
            else if (value is Array)
            {
                _internal_quot_det_sc_serialnumber = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of quot_det_sc_serialnumber must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "quot_det_sc_serialnumber", oldValue, _internal_quot_det_sc_serialnumber));
        }
    }

    public function set sc_term(value:int) : void
    {
        var oldValue:int = _internal_sc_term;
        if (oldValue !== value)
        {
            _internal_sc_term = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sc_term", oldValue, _internal_sc_term));
        }
    }

    public function set sales_con_status(value:String) : void
    {
        var oldValue:String = _internal_sales_con_status;
        if (oldValue !== value)
        {
            _internal_sales_con_status = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sales_con_status", oldValue, _internal_sales_con_status));
        }
    }

    public function set no_of_days(value:Number) : void
    {
        var oldValue:Number = _internal_no_of_days;
        if (isNaN(_internal_no_of_days) == true || Math.abs(oldValue - value) > epsilon)
        {
            _internal_no_of_days = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "no_of_days", oldValue, _internal_no_of_days));
        }
    }

    public function set pro_detserialnumber(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_pro_detserialnumber;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_pro_detserialnumber = value;
            }
            else if (value is Array)
            {
                _internal_pro_detserialnumber = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of pro_detserialnumber must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_detserialnumber", oldValue, _internal_pro_detserialnumber));
        }
    }

    public function set sales_con_code(value:String) : void
    {
        var oldValue:String = _internal_sales_con_code;
        if (oldValue !== value)
        {
            _internal_sales_con_code = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sales_con_code", oldValue, _internal_sales_con_code));
        }
    }

    public function set customer_serialnumber_fk(value:Number) : void
    {
        var oldValue:Number = _internal_customer_serialnumber_fk;
        if (isNaN(_internal_customer_serialnumber_fk) == true || Math.abs(oldValue - value) > epsilon)
        {
            _internal_customer_serialnumber_fk = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "customer_serialnumber_fk", oldValue, _internal_customer_serialnumber_fk));
        }
    }

    public function set price_list(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_price_list;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_price_list = value;
            }
            else if (value is Array)
            {
                _internal_price_list = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of price_list must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "price_list", oldValue, _internal_price_list));
        }
    }

    public function set sc_remarks(value:String) : void
    {
        var oldValue:String = _internal_sc_remarks;
        if (oldValue !== value)
        {
            _internal_sc_remarks = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sc_remarks", oldValue, _internal_sc_remarks));
        }
    }

    public function set warehouse_serialnumber_fk(value:*) : void
    {
        var oldValue:ArrayCollection = _internal_warehouse_serialnumber_fk;
        if (oldValue !== value)
        {
            if (value is ArrayCollection)
            {
                _internal_warehouse_serialnumber_fk = value;
            }
            else if (value is Array)
            {
                _internal_warehouse_serialnumber_fk = new ArrayCollection(value);
            }
            else
            {
                throw new Error("value of warehouse_serialnumber_fk must be a collection");
            }
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "warehouse_serialnumber_fk", oldValue, _internal_warehouse_serialnumber_fk));
        }
    }

    /**
     * Data property setter listeners
     *
     * Each data property whose value affects other properties or the validity of the entity
     * needs to invalidate all previously calculated artifacts. These include:
     *  - any derived properties or constraints that reference the given data property.
     *  - any availability guards (variant expressions) that reference the given data property.
     *  - any style validations, message tokens or guards that reference the given data property.
     *  - the validity of the property (and the containing entity) if the given data property has a length restriction.
     *  - the validity of the property (and the containing entity) if the given data property is required.
     */

    model_internal function setterListenerWarehouse_name(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerWarehouse_name);
            }
        }
        _model.invalidateDependentOnWarehouse_name();
    }

    model_internal function setterListenerDo_pro_qty(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerDo_pro_qty);
            }
        }
        _model.invalidateDependentOnDo_pro_qty();
    }

    model_internal function setterListenerBalance_qty(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerBalance_qty);
            }
        }
        _model.invalidateDependentOnBalance_qty();
    }

    model_internal function setterListenerIsAllocated(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerIsAllocated);
            }
        }
        _model.invalidateDependentOnIsAllocated();
    }

    model_internal function setterListenerMapped_po_list(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerMapped_po_list);
            }
        }
        _model.invalidateDependentOnMapped_po_list();
    }

    model_internal function setterListenerOther_part_no(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerOther_part_no);
            }
        }
        _model.invalidateDependentOnOther_part_no();
    }

    model_internal function setterListenerPro_name(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPro_name);
            }
        }
        _model.invalidateDependentOnPro_name();
    }

    model_internal function setterListenerSales_con_date(value:flash.events.Event):void
    {
        _model.invalidateDependentOnSales_con_date();
    }

    model_internal function setterListenerQuotation_serialnumber_fk(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerQuotation_serialnumber_fk);
            }
        }
        _model.invalidateDependentOnQuotation_serialnumber_fk();
    }

    model_internal function setterListenerPart_number(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPart_number);
            }
        }
        _model.invalidateDependentOnPart_number();
    }

    model_internal function setterListenerDetserialnumber(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerDetserialnumber);
            }
        }
        _model.invalidateDependentOnDetserialnumber();
    }

    model_internal function setterListenerQuotation_code(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerQuotation_code);
            }
        }
        _model.invalidateDependentOnQuotation_code();
    }

    model_internal function setterListenerPro_description(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPro_description);
            }
        }
        _model.invalidateDependentOnPro_description();
    }

    model_internal function setterListenerQuot_pro_qty(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerQuot_pro_qty);
            }
        }
        _model.invalidateDependentOnQuot_pro_qty();
    }

    model_internal function setterListenerPro_qty(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPro_qty);
            }
        }
        _model.invalidateDependentOnPro_qty();
    }

    model_internal function setterListenerDefault_price(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerDefault_price);
            }
        }
        _model.invalidateDependentOnDefault_price();
    }

    model_internal function setterListenerClient_name(value:flash.events.Event):void
    {
        _model.invalidateDependentOnClient_name();
    }

    model_internal function setterListenerQuot_pro_serialnumber_fk(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerQuot_pro_serialnumber_fk);
            }
        }
        _model.invalidateDependentOnQuot_pro_serialnumber_fk();
    }

    model_internal function setterListenerModel_no(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerModel_no);
            }
        }
        _model.invalidateDependentOnModel_no();
    }

    model_internal function setterListenerCre_datetime(value:flash.events.Event):void
    {
        _model.invalidateDependentOnCre_datetime();
    }

    model_internal function setterListenerPrice_per_unit(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPrice_per_unit);
            }
        }
        _model.invalidateDependentOnPrice_per_unit();
    }

    model_internal function setterListenerQuot_sc_serialnumber_fk(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerQuot_sc_serialnumber_fk);
            }
        }
        _model.invalidateDependentOnQuot_sc_serialnumber_fk();
    }

    model_internal function setterListenerSgd_listprice(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerSgd_listprice);
            }
        }
        _model.invalidateDependentOnSgd_listprice();
    }

    model_internal function setterListenerPro_status(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPro_status);
            }
        }
        _model.invalidateDependentOnPro_status();
    }

    model_internal function setterListenerPro_total_price(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPro_total_price);
            }
        }
        _model.invalidateDependentOnPro_total_price();
    }

    model_internal function setterListenerSc_serialnumber_fk(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerSc_serialnumber_fk);
            }
        }
        _model.invalidateDependentOnSc_serialnumber_fk();
    }

    model_internal function setterListenerStamp_number(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerStamp_number);
            }
        }
        _model.invalidateDependentOnStamp_number();
    }

    model_internal function setterListenerBase_currency_detserialnumber_fk(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerBase_currency_detserialnumber_fk);
            }
        }
        _model.invalidateDependentOnBase_currency_detserialnumber_fk();
    }

    model_internal function setterListenerSales_type(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerSales_type);
            }
        }
        _model.invalidateDependentOnSales_type();
    }

    model_internal function setterListenerPro_serialnumber_fk(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPro_serialnumber_fk);
            }
        }
        _model.invalidateDependentOnPro_serialnumber_fk();
    }

    model_internal function setterListenerDelivery_loc(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerDelivery_loc);
            }
        }
        _model.invalidateDependentOnDelivery_loc();
    }

    model_internal function setterListenerExpected_datetime(value:flash.events.Event):void
    {
        _model.invalidateDependentOnExpected_datetime();
    }

    model_internal function setterListenerQuot_detserialnumber_fk(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerQuot_detserialnumber_fk);
            }
        }
        _model.invalidateDependentOnQuot_detserialnumber_fk();
    }

    model_internal function setterListenerQuot_det_sc_serialnumber(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerQuot_det_sc_serialnumber);
            }
        }
        _model.invalidateDependentOnQuot_det_sc_serialnumber();
    }

    model_internal function setterListenerSales_con_status(value:flash.events.Event):void
    {
        _model.invalidateDependentOnSales_con_status();
    }

    model_internal function setterListenerPro_detserialnumber(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPro_detserialnumber);
            }
        }
        _model.invalidateDependentOnPro_detserialnumber();
    }

    model_internal function setterListenerSales_con_code(value:flash.events.Event):void
    {
        _model.invalidateDependentOnSales_con_code();
    }

    model_internal function setterListenerPrice_list(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerPrice_list);
            }
        }
        _model.invalidateDependentOnPrice_list();
    }

    model_internal function setterListenerSc_remarks(value:flash.events.Event):void
    {
        _model.invalidateDependentOnSc_remarks();
    }

    model_internal function setterListenerWarehouse_serialnumber_fk(value:flash.events.Event):void
    {
        if (value is mx.events.PropertyChangeEvent)
        {
            if (mx.events.PropertyChangeEvent(value).newValue)
            {
                mx.events.PropertyChangeEvent(value).newValue.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, model_internal::setterListenerWarehouse_serialnumber_fk);
            }
        }
        _model.invalidateDependentOnWarehouse_serialnumber_fk();
    }


    /**
     * valid related derived properties
     */
    model_internal var _isValid : Boolean;
    model_internal var _invalidConstraints:Array = new Array();
    model_internal var _validationFailureMessages:Array = new Array();

    /**
     * derived property calculators
     */

    /**
     * isValid calculator
     */
    model_internal function calculateIsValid():Boolean
    {
        var violatedConsts:Array = new Array();
        var validationFailureMessages:Array = new Array();

        var propertyValidity:Boolean = true;
        if (!_model.warehouse_nameIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_warehouse_nameValidationFailureMessages);
        }
        if (!_model.do_pro_qtyIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_do_pro_qtyValidationFailureMessages);
        }
        if (!_model.balance_qtyIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_balance_qtyValidationFailureMessages);
        }
        if (!_model.isAllocatedIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_isAllocatedValidationFailureMessages);
        }
        if (!_model.mapped_po_listIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_mapped_po_listValidationFailureMessages);
        }
        if (!_model.other_part_noIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_other_part_noValidationFailureMessages);
        }
        if (!_model.pro_nameIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_pro_nameValidationFailureMessages);
        }
        if (!_model.sales_con_dateIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_sales_con_dateValidationFailureMessages);
        }
        if (!_model.quotation_serialnumber_fkIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_quotation_serialnumber_fkValidationFailureMessages);
        }
        if (!_model.part_numberIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_part_numberValidationFailureMessages);
        }
        if (!_model.detserialnumberIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_detserialnumberValidationFailureMessages);
        }
        if (!_model.quotation_codeIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_quotation_codeValidationFailureMessages);
        }
        if (!_model.pro_descriptionIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_pro_descriptionValidationFailureMessages);
        }
        if (!_model.quot_pro_qtyIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_quot_pro_qtyValidationFailureMessages);
        }
        if (!_model.pro_qtyIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_pro_qtyValidationFailureMessages);
        }
        if (!_model.default_priceIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_default_priceValidationFailureMessages);
        }
        if (!_model.client_nameIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_client_nameValidationFailureMessages);
        }
        if (!_model.quot_pro_serialnumber_fkIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_quot_pro_serialnumber_fkValidationFailureMessages);
        }
        if (!_model.model_noIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_model_noValidationFailureMessages);
        }
        if (!_model.cre_datetimeIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_cre_datetimeValidationFailureMessages);
        }
        if (!_model.price_per_unitIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_price_per_unitValidationFailureMessages);
        }
        if (!_model.quot_sc_serialnumber_fkIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_quot_sc_serialnumber_fkValidationFailureMessages);
        }
        if (!_model.sgd_listpriceIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_sgd_listpriceValidationFailureMessages);
        }
        if (!_model.pro_statusIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_pro_statusValidationFailureMessages);
        }
        if (!_model.pro_total_priceIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_pro_total_priceValidationFailureMessages);
        }
        if (!_model.sc_serialnumber_fkIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_sc_serialnumber_fkValidationFailureMessages);
        }
        if (!_model.stamp_numberIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_stamp_numberValidationFailureMessages);
        }
        if (!_model.base_currency_detserialnumber_fkIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_base_currency_detserialnumber_fkValidationFailureMessages);
        }
        if (!_model.sales_typeIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_sales_typeValidationFailureMessages);
        }
        if (!_model.pro_serialnumber_fkIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_pro_serialnumber_fkValidationFailureMessages);
        }
        if (!_model.delivery_locIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_delivery_locValidationFailureMessages);
        }
        if (!_model.expected_datetimeIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_expected_datetimeValidationFailureMessages);
        }
        if (!_model.quot_detserialnumber_fkIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_quot_detserialnumber_fkValidationFailureMessages);
        }
        if (!_model.quot_det_sc_serialnumberIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_quot_det_sc_serialnumberValidationFailureMessages);
        }
        if (!_model.sales_con_statusIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_sales_con_statusValidationFailureMessages);
        }
        if (!_model.pro_detserialnumberIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_pro_detserialnumberValidationFailureMessages);
        }
        if (!_model.sales_con_codeIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_sales_con_codeValidationFailureMessages);
        }
        if (!_model.price_listIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_price_listValidationFailureMessages);
        }
        if (!_model.sc_remarksIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_sc_remarksValidationFailureMessages);
        }
        if (!_model.warehouse_serialnumber_fkIsValid)
        {
            propertyValidity = false;
            com.adobe.fiber.util.FiberUtils.arrayAdd(validationFailureMessages, _model.model_internal::_warehouse_serialnumber_fkValidationFailureMessages);
        }

        model_internal::_cacheInitialized_isValid = true;
        model_internal::invalidConstraints_der = violatedConsts;
        model_internal::validationFailureMessages_der = validationFailureMessages;
        return violatedConsts.length == 0 && propertyValidity;
    }

    /**
     * derived property setters
     */

    model_internal function set isValid_der(value:Boolean) : void
    {
        var oldValue:Boolean = model_internal::_isValid;
        if (oldValue !== value)
        {
            model_internal::_isValid = value;
            _model.model_internal::fireChangeEvent("isValid", oldValue, model_internal::_isValid);
        }
    }

    /**
     * derived property getters
     */

    [Transient]
    [Bindable(event="propertyChange")]
    public function get _model() : _VoSalesConformationEntityMetadata
    {
        return model_internal::_dminternal_model;
    }

    public function set _model(value : _VoSalesConformationEntityMetadata) : void
    {
        var oldValue : _VoSalesConformationEntityMetadata = model_internal::_dminternal_model;
        if (oldValue !== value)
        {
            model_internal::_dminternal_model = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "_model", oldValue, model_internal::_dminternal_model));
        }
    }

    /**
     * methods
     */


    /**
     *  services
     */
    private var _managingService:com.adobe.fiber.services.IFiberManagingService;

    public function set managingService(managingService:com.adobe.fiber.services.IFiberManagingService):void
    {
        _managingService = managingService;
    }

    model_internal function set invalidConstraints_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_invalidConstraints;
        // avoid firing the event when old and new value are different empty arrays
        if (oldValue !== value && (oldValue.length > 0 || value.length > 0))
        {
            model_internal::_invalidConstraints = value;
            _model.model_internal::fireChangeEvent("invalidConstraints", oldValue, model_internal::_invalidConstraints);
        }
    }

    model_internal function set validationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_validationFailureMessages;
        // avoid firing the event when old and new value are different empty arrays
        if (oldValue !== value && (oldValue.length > 0 || value.length > 0))
        {
            model_internal::_validationFailureMessages = value;
            _model.model_internal::fireChangeEvent("validationFailureMessages", oldValue, model_internal::_validationFailureMessages);
        }
    }

    model_internal var _doValidationCacheOfWarehouse_name : Array = null;
    model_internal var _doValidationLastValOfWarehouse_name : ArrayCollection;

    model_internal function _doValidationForWarehouse_name(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfWarehouse_name != null && model_internal::_doValidationLastValOfWarehouse_name == value)
           return model_internal::_doValidationCacheOfWarehouse_name ;

        _model.model_internal::_warehouse_nameIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isWarehouse_nameAvailable && _internal_warehouse_name == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "warehouse_name is required"));
        }

        model_internal::_doValidationCacheOfWarehouse_name = validationFailures;
        model_internal::_doValidationLastValOfWarehouse_name = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfDo_pro_qty : Array = null;
    model_internal var _doValidationLastValOfDo_pro_qty : ArrayCollection;

    model_internal function _doValidationForDo_pro_qty(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfDo_pro_qty != null && model_internal::_doValidationLastValOfDo_pro_qty == value)
           return model_internal::_doValidationCacheOfDo_pro_qty ;

        _model.model_internal::_do_pro_qtyIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isDo_pro_qtyAvailable && _internal_do_pro_qty == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "do_pro_qty is required"));
        }

        model_internal::_doValidationCacheOfDo_pro_qty = validationFailures;
        model_internal::_doValidationLastValOfDo_pro_qty = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfBalance_qty : Array = null;
    model_internal var _doValidationLastValOfBalance_qty : ArrayCollection;

    model_internal function _doValidationForBalance_qty(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfBalance_qty != null && model_internal::_doValidationLastValOfBalance_qty == value)
           return model_internal::_doValidationCacheOfBalance_qty ;

        _model.model_internal::_balance_qtyIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isBalance_qtyAvailable && _internal_balance_qty == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "balance_qty is required"));
        }

        model_internal::_doValidationCacheOfBalance_qty = validationFailures;
        model_internal::_doValidationLastValOfBalance_qty = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfIsAllocated : Array = null;
    model_internal var _doValidationLastValOfIsAllocated : ArrayCollection;

    model_internal function _doValidationForIsAllocated(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfIsAllocated != null && model_internal::_doValidationLastValOfIsAllocated == value)
           return model_internal::_doValidationCacheOfIsAllocated ;

        _model.model_internal::_isAllocatedIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isIsAllocatedAvailable && _internal_isAllocated == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "isAllocated is required"));
        }

        model_internal::_doValidationCacheOfIsAllocated = validationFailures;
        model_internal::_doValidationLastValOfIsAllocated = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfMapped_po_list : Array = null;
    model_internal var _doValidationLastValOfMapped_po_list : ArrayCollection;

    model_internal function _doValidationForMapped_po_list(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfMapped_po_list != null && model_internal::_doValidationLastValOfMapped_po_list == value)
           return model_internal::_doValidationCacheOfMapped_po_list ;

        _model.model_internal::_mapped_po_listIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isMapped_po_listAvailable && _internal_mapped_po_list == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "mapped_po_list is required"));
        }

        model_internal::_doValidationCacheOfMapped_po_list = validationFailures;
        model_internal::_doValidationLastValOfMapped_po_list = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfOther_part_no : Array = null;
    model_internal var _doValidationLastValOfOther_part_no : ArrayCollection;

    model_internal function _doValidationForOther_part_no(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfOther_part_no != null && model_internal::_doValidationLastValOfOther_part_no == value)
           return model_internal::_doValidationCacheOfOther_part_no ;

        _model.model_internal::_other_part_noIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isOther_part_noAvailable && _internal_other_part_no == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "other_part_no is required"));
        }

        model_internal::_doValidationCacheOfOther_part_no = validationFailures;
        model_internal::_doValidationLastValOfOther_part_no = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPro_name : Array = null;
    model_internal var _doValidationLastValOfPro_name : ArrayCollection;

    model_internal function _doValidationForPro_name(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPro_name != null && model_internal::_doValidationLastValOfPro_name == value)
           return model_internal::_doValidationCacheOfPro_name ;

        _model.model_internal::_pro_nameIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPro_nameAvailable && _internal_pro_name == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "pro_name is required"));
        }

        model_internal::_doValidationCacheOfPro_name = validationFailures;
        model_internal::_doValidationLastValOfPro_name = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfSales_con_date : Array = null;
    model_internal var _doValidationLastValOfSales_con_date : String;

    model_internal function _doValidationForSales_con_date(valueIn:Object):Array
    {
        var value : String = valueIn as String;

        if (model_internal::_doValidationCacheOfSales_con_date != null && model_internal::_doValidationLastValOfSales_con_date == value)
           return model_internal::_doValidationCacheOfSales_con_date ;

        _model.model_internal::_sales_con_dateIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isSales_con_dateAvailable && _internal_sales_con_date == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "sales_con_date is required"));
        }

        model_internal::_doValidationCacheOfSales_con_date = validationFailures;
        model_internal::_doValidationLastValOfSales_con_date = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfQuotation_serialnumber_fk : Array = null;
    model_internal var _doValidationLastValOfQuotation_serialnumber_fk : ArrayCollection;

    model_internal function _doValidationForQuotation_serialnumber_fk(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfQuotation_serialnumber_fk != null && model_internal::_doValidationLastValOfQuotation_serialnumber_fk == value)
           return model_internal::_doValidationCacheOfQuotation_serialnumber_fk ;

        _model.model_internal::_quotation_serialnumber_fkIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isQuotation_serialnumber_fkAvailable && _internal_quotation_serialnumber_fk == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "quotation_serialnumber_fk is required"));
        }

        model_internal::_doValidationCacheOfQuotation_serialnumber_fk = validationFailures;
        model_internal::_doValidationLastValOfQuotation_serialnumber_fk = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPart_number : Array = null;
    model_internal var _doValidationLastValOfPart_number : ArrayCollection;

    model_internal function _doValidationForPart_number(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPart_number != null && model_internal::_doValidationLastValOfPart_number == value)
           return model_internal::_doValidationCacheOfPart_number ;

        _model.model_internal::_part_numberIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPart_numberAvailable && _internal_part_number == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "part_number is required"));
        }

        model_internal::_doValidationCacheOfPart_number = validationFailures;
        model_internal::_doValidationLastValOfPart_number = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfDetserialnumber : Array = null;
    model_internal var _doValidationLastValOfDetserialnumber : ArrayCollection;

    model_internal function _doValidationForDetserialnumber(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfDetserialnumber != null && model_internal::_doValidationLastValOfDetserialnumber == value)
           return model_internal::_doValidationCacheOfDetserialnumber ;

        _model.model_internal::_detserialnumberIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isDetserialnumberAvailable && _internal_detserialnumber == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "detserialnumber is required"));
        }

        model_internal::_doValidationCacheOfDetserialnumber = validationFailures;
        model_internal::_doValidationLastValOfDetserialnumber = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfQuotation_code : Array = null;
    model_internal var _doValidationLastValOfQuotation_code : ArrayCollection;

    model_internal function _doValidationForQuotation_code(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfQuotation_code != null && model_internal::_doValidationLastValOfQuotation_code == value)
           return model_internal::_doValidationCacheOfQuotation_code ;

        _model.model_internal::_quotation_codeIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isQuotation_codeAvailable && _internal_quotation_code == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "quotation_code is required"));
        }

        model_internal::_doValidationCacheOfQuotation_code = validationFailures;
        model_internal::_doValidationLastValOfQuotation_code = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPro_description : Array = null;
    model_internal var _doValidationLastValOfPro_description : ArrayCollection;

    model_internal function _doValidationForPro_description(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPro_description != null && model_internal::_doValidationLastValOfPro_description == value)
           return model_internal::_doValidationCacheOfPro_description ;

        _model.model_internal::_pro_descriptionIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPro_descriptionAvailable && _internal_pro_description == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "pro_description is required"));
        }

        model_internal::_doValidationCacheOfPro_description = validationFailures;
        model_internal::_doValidationLastValOfPro_description = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfQuot_pro_qty : Array = null;
    model_internal var _doValidationLastValOfQuot_pro_qty : ArrayCollection;

    model_internal function _doValidationForQuot_pro_qty(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfQuot_pro_qty != null && model_internal::_doValidationLastValOfQuot_pro_qty == value)
           return model_internal::_doValidationCacheOfQuot_pro_qty ;

        _model.model_internal::_quot_pro_qtyIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isQuot_pro_qtyAvailable && _internal_quot_pro_qty == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "quot_pro_qty is required"));
        }

        model_internal::_doValidationCacheOfQuot_pro_qty = validationFailures;
        model_internal::_doValidationLastValOfQuot_pro_qty = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPro_qty : Array = null;
    model_internal var _doValidationLastValOfPro_qty : ArrayCollection;

    model_internal function _doValidationForPro_qty(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPro_qty != null && model_internal::_doValidationLastValOfPro_qty == value)
           return model_internal::_doValidationCacheOfPro_qty ;

        _model.model_internal::_pro_qtyIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPro_qtyAvailable && _internal_pro_qty == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "pro_qty is required"));
        }

        model_internal::_doValidationCacheOfPro_qty = validationFailures;
        model_internal::_doValidationLastValOfPro_qty = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfDefault_price : Array = null;
    model_internal var _doValidationLastValOfDefault_price : ArrayCollection;

    model_internal function _doValidationForDefault_price(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfDefault_price != null && model_internal::_doValidationLastValOfDefault_price == value)
           return model_internal::_doValidationCacheOfDefault_price ;

        _model.model_internal::_default_priceIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isDefault_priceAvailable && _internal_default_price == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "default_price is required"));
        }

        model_internal::_doValidationCacheOfDefault_price = validationFailures;
        model_internal::_doValidationLastValOfDefault_price = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfClient_name : Array = null;
    model_internal var _doValidationLastValOfClient_name : String;

    model_internal function _doValidationForClient_name(valueIn:Object):Array
    {
        var value : String = valueIn as String;

        if (model_internal::_doValidationCacheOfClient_name != null && model_internal::_doValidationLastValOfClient_name == value)
           return model_internal::_doValidationCacheOfClient_name ;

        _model.model_internal::_client_nameIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isClient_nameAvailable && _internal_client_name == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "client_name is required"));
        }

        model_internal::_doValidationCacheOfClient_name = validationFailures;
        model_internal::_doValidationLastValOfClient_name = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfQuot_pro_serialnumber_fk : Array = null;
    model_internal var _doValidationLastValOfQuot_pro_serialnumber_fk : ArrayCollection;

    model_internal function _doValidationForQuot_pro_serialnumber_fk(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfQuot_pro_serialnumber_fk != null && model_internal::_doValidationLastValOfQuot_pro_serialnumber_fk == value)
           return model_internal::_doValidationCacheOfQuot_pro_serialnumber_fk ;

        _model.model_internal::_quot_pro_serialnumber_fkIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isQuot_pro_serialnumber_fkAvailable && _internal_quot_pro_serialnumber_fk == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "quot_pro_serialnumber_fk is required"));
        }

        model_internal::_doValidationCacheOfQuot_pro_serialnumber_fk = validationFailures;
        model_internal::_doValidationLastValOfQuot_pro_serialnumber_fk = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfModel_no : Array = null;
    model_internal var _doValidationLastValOfModel_no : ArrayCollection;

    model_internal function _doValidationForModel_no(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfModel_no != null && model_internal::_doValidationLastValOfModel_no == value)
           return model_internal::_doValidationCacheOfModel_no ;

        _model.model_internal::_model_noIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isModel_noAvailable && _internal_model_no == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "model_no is required"));
        }

        model_internal::_doValidationCacheOfModel_no = validationFailures;
        model_internal::_doValidationLastValOfModel_no = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfCre_datetime : Array = null;
    model_internal var _doValidationLastValOfCre_datetime : String;

    model_internal function _doValidationForCre_datetime(valueIn:Object):Array
    {
        var value : String = valueIn as String;

        if (model_internal::_doValidationCacheOfCre_datetime != null && model_internal::_doValidationLastValOfCre_datetime == value)
           return model_internal::_doValidationCacheOfCre_datetime ;

        _model.model_internal::_cre_datetimeIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isCre_datetimeAvailable && _internal_cre_datetime == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "cre_datetime is required"));
        }

        model_internal::_doValidationCacheOfCre_datetime = validationFailures;
        model_internal::_doValidationLastValOfCre_datetime = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPrice_per_unit : Array = null;
    model_internal var _doValidationLastValOfPrice_per_unit : ArrayCollection;

    model_internal function _doValidationForPrice_per_unit(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPrice_per_unit != null && model_internal::_doValidationLastValOfPrice_per_unit == value)
           return model_internal::_doValidationCacheOfPrice_per_unit ;

        _model.model_internal::_price_per_unitIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPrice_per_unitAvailable && _internal_price_per_unit == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "price_per_unit is required"));
        }

        model_internal::_doValidationCacheOfPrice_per_unit = validationFailures;
        model_internal::_doValidationLastValOfPrice_per_unit = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfQuot_sc_serialnumber_fk : Array = null;
    model_internal var _doValidationLastValOfQuot_sc_serialnumber_fk : ArrayCollection;

    model_internal function _doValidationForQuot_sc_serialnumber_fk(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfQuot_sc_serialnumber_fk != null && model_internal::_doValidationLastValOfQuot_sc_serialnumber_fk == value)
           return model_internal::_doValidationCacheOfQuot_sc_serialnumber_fk ;

        _model.model_internal::_quot_sc_serialnumber_fkIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isQuot_sc_serialnumber_fkAvailable && _internal_quot_sc_serialnumber_fk == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "quot_sc_serialnumber_fk is required"));
        }

        model_internal::_doValidationCacheOfQuot_sc_serialnumber_fk = validationFailures;
        model_internal::_doValidationLastValOfQuot_sc_serialnumber_fk = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfSgd_listprice : Array = null;
    model_internal var _doValidationLastValOfSgd_listprice : ArrayCollection;

    model_internal function _doValidationForSgd_listprice(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfSgd_listprice != null && model_internal::_doValidationLastValOfSgd_listprice == value)
           return model_internal::_doValidationCacheOfSgd_listprice ;

        _model.model_internal::_sgd_listpriceIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isSgd_listpriceAvailable && _internal_sgd_listprice == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "sgd_listprice is required"));
        }

        model_internal::_doValidationCacheOfSgd_listprice = validationFailures;
        model_internal::_doValidationLastValOfSgd_listprice = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPro_status : Array = null;
    model_internal var _doValidationLastValOfPro_status : ArrayCollection;

    model_internal function _doValidationForPro_status(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPro_status != null && model_internal::_doValidationLastValOfPro_status == value)
           return model_internal::_doValidationCacheOfPro_status ;

        _model.model_internal::_pro_statusIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPro_statusAvailable && _internal_pro_status == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "pro_status is required"));
        }

        model_internal::_doValidationCacheOfPro_status = validationFailures;
        model_internal::_doValidationLastValOfPro_status = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPro_total_price : Array = null;
    model_internal var _doValidationLastValOfPro_total_price : ArrayCollection;

    model_internal function _doValidationForPro_total_price(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPro_total_price != null && model_internal::_doValidationLastValOfPro_total_price == value)
           return model_internal::_doValidationCacheOfPro_total_price ;

        _model.model_internal::_pro_total_priceIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPro_total_priceAvailable && _internal_pro_total_price == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "pro_total_price is required"));
        }

        model_internal::_doValidationCacheOfPro_total_price = validationFailures;
        model_internal::_doValidationLastValOfPro_total_price = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfSc_serialnumber_fk : Array = null;
    model_internal var _doValidationLastValOfSc_serialnumber_fk : ArrayCollection;

    model_internal function _doValidationForSc_serialnumber_fk(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfSc_serialnumber_fk != null && model_internal::_doValidationLastValOfSc_serialnumber_fk == value)
           return model_internal::_doValidationCacheOfSc_serialnumber_fk ;

        _model.model_internal::_sc_serialnumber_fkIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isSc_serialnumber_fkAvailable && _internal_sc_serialnumber_fk == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "sc_serialnumber_fk is required"));
        }

        model_internal::_doValidationCacheOfSc_serialnumber_fk = validationFailures;
        model_internal::_doValidationLastValOfSc_serialnumber_fk = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfStamp_number : Array = null;
    model_internal var _doValidationLastValOfStamp_number : ArrayCollection;

    model_internal function _doValidationForStamp_number(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfStamp_number != null && model_internal::_doValidationLastValOfStamp_number == value)
           return model_internal::_doValidationCacheOfStamp_number ;

        _model.model_internal::_stamp_numberIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isStamp_numberAvailable && _internal_stamp_number == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "stamp_number is required"));
        }

        model_internal::_doValidationCacheOfStamp_number = validationFailures;
        model_internal::_doValidationLastValOfStamp_number = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfBase_currency_detserialnumber_fk : Array = null;
    model_internal var _doValidationLastValOfBase_currency_detserialnumber_fk : ArrayCollection;

    model_internal function _doValidationForBase_currency_detserialnumber_fk(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfBase_currency_detserialnumber_fk != null && model_internal::_doValidationLastValOfBase_currency_detserialnumber_fk == value)
           return model_internal::_doValidationCacheOfBase_currency_detserialnumber_fk ;

        _model.model_internal::_base_currency_detserialnumber_fkIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isBase_currency_detserialnumber_fkAvailable && _internal_base_currency_detserialnumber_fk == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "base_currency_detserialnumber_fk is required"));
        }

        model_internal::_doValidationCacheOfBase_currency_detserialnumber_fk = validationFailures;
        model_internal::_doValidationLastValOfBase_currency_detserialnumber_fk = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfSales_type : Array = null;
    model_internal var _doValidationLastValOfSales_type : ArrayCollection;

    model_internal function _doValidationForSales_type(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfSales_type != null && model_internal::_doValidationLastValOfSales_type == value)
           return model_internal::_doValidationCacheOfSales_type ;

        _model.model_internal::_sales_typeIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isSales_typeAvailable && _internal_sales_type == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "sales_type is required"));
        }

        model_internal::_doValidationCacheOfSales_type = validationFailures;
        model_internal::_doValidationLastValOfSales_type = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPro_serialnumber_fk : Array = null;
    model_internal var _doValidationLastValOfPro_serialnumber_fk : ArrayCollection;

    model_internal function _doValidationForPro_serialnumber_fk(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPro_serialnumber_fk != null && model_internal::_doValidationLastValOfPro_serialnumber_fk == value)
           return model_internal::_doValidationCacheOfPro_serialnumber_fk ;

        _model.model_internal::_pro_serialnumber_fkIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPro_serialnumber_fkAvailable && _internal_pro_serialnumber_fk == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "pro_serialnumber_fk is required"));
        }

        model_internal::_doValidationCacheOfPro_serialnumber_fk = validationFailures;
        model_internal::_doValidationLastValOfPro_serialnumber_fk = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfDelivery_loc : Array = null;
    model_internal var _doValidationLastValOfDelivery_loc : ArrayCollection;

    model_internal function _doValidationForDelivery_loc(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfDelivery_loc != null && model_internal::_doValidationLastValOfDelivery_loc == value)
           return model_internal::_doValidationCacheOfDelivery_loc ;

        _model.model_internal::_delivery_locIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isDelivery_locAvailable && _internal_delivery_loc == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "delivery_loc is required"));
        }

        model_internal::_doValidationCacheOfDelivery_loc = validationFailures;
        model_internal::_doValidationLastValOfDelivery_loc = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfExpected_datetime : Array = null;
    model_internal var _doValidationLastValOfExpected_datetime : String;

    model_internal function _doValidationForExpected_datetime(valueIn:Object):Array
    {
        var value : String = valueIn as String;

        if (model_internal::_doValidationCacheOfExpected_datetime != null && model_internal::_doValidationLastValOfExpected_datetime == value)
           return model_internal::_doValidationCacheOfExpected_datetime ;

        _model.model_internal::_expected_datetimeIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isExpected_datetimeAvailable && _internal_expected_datetime == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "expected_datetime is required"));
        }

        model_internal::_doValidationCacheOfExpected_datetime = validationFailures;
        model_internal::_doValidationLastValOfExpected_datetime = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfQuot_detserialnumber_fk : Array = null;
    model_internal var _doValidationLastValOfQuot_detserialnumber_fk : ArrayCollection;

    model_internal function _doValidationForQuot_detserialnumber_fk(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfQuot_detserialnumber_fk != null && model_internal::_doValidationLastValOfQuot_detserialnumber_fk == value)
           return model_internal::_doValidationCacheOfQuot_detserialnumber_fk ;

        _model.model_internal::_quot_detserialnumber_fkIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isQuot_detserialnumber_fkAvailable && _internal_quot_detserialnumber_fk == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "quot_detserialnumber_fk is required"));
        }

        model_internal::_doValidationCacheOfQuot_detserialnumber_fk = validationFailures;
        model_internal::_doValidationLastValOfQuot_detserialnumber_fk = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfQuot_det_sc_serialnumber : Array = null;
    model_internal var _doValidationLastValOfQuot_det_sc_serialnumber : ArrayCollection;

    model_internal function _doValidationForQuot_det_sc_serialnumber(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfQuot_det_sc_serialnumber != null && model_internal::_doValidationLastValOfQuot_det_sc_serialnumber == value)
           return model_internal::_doValidationCacheOfQuot_det_sc_serialnumber ;

        _model.model_internal::_quot_det_sc_serialnumberIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isQuot_det_sc_serialnumberAvailable && _internal_quot_det_sc_serialnumber == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "quot_det_sc_serialnumber is required"));
        }

        model_internal::_doValidationCacheOfQuot_det_sc_serialnumber = validationFailures;
        model_internal::_doValidationLastValOfQuot_det_sc_serialnumber = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfSales_con_status : Array = null;
    model_internal var _doValidationLastValOfSales_con_status : String;

    model_internal function _doValidationForSales_con_status(valueIn:Object):Array
    {
        var value : String = valueIn as String;

        if (model_internal::_doValidationCacheOfSales_con_status != null && model_internal::_doValidationLastValOfSales_con_status == value)
           return model_internal::_doValidationCacheOfSales_con_status ;

        _model.model_internal::_sales_con_statusIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isSales_con_statusAvailable && _internal_sales_con_status == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "sales_con_status is required"));
        }

        model_internal::_doValidationCacheOfSales_con_status = validationFailures;
        model_internal::_doValidationLastValOfSales_con_status = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPro_detserialnumber : Array = null;
    model_internal var _doValidationLastValOfPro_detserialnumber : ArrayCollection;

    model_internal function _doValidationForPro_detserialnumber(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPro_detserialnumber != null && model_internal::_doValidationLastValOfPro_detserialnumber == value)
           return model_internal::_doValidationCacheOfPro_detserialnumber ;

        _model.model_internal::_pro_detserialnumberIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPro_detserialnumberAvailable && _internal_pro_detserialnumber == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "pro_detserialnumber is required"));
        }

        model_internal::_doValidationCacheOfPro_detserialnumber = validationFailures;
        model_internal::_doValidationLastValOfPro_detserialnumber = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfSales_con_code : Array = null;
    model_internal var _doValidationLastValOfSales_con_code : String;

    model_internal function _doValidationForSales_con_code(valueIn:Object):Array
    {
        var value : String = valueIn as String;

        if (model_internal::_doValidationCacheOfSales_con_code != null && model_internal::_doValidationLastValOfSales_con_code == value)
           return model_internal::_doValidationCacheOfSales_con_code ;

        _model.model_internal::_sales_con_codeIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isSales_con_codeAvailable && _internal_sales_con_code == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "sales_con_code is required"));
        }

        model_internal::_doValidationCacheOfSales_con_code = validationFailures;
        model_internal::_doValidationLastValOfSales_con_code = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfPrice_list : Array = null;
    model_internal var _doValidationLastValOfPrice_list : ArrayCollection;

    model_internal function _doValidationForPrice_list(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfPrice_list != null && model_internal::_doValidationLastValOfPrice_list == value)
           return model_internal::_doValidationCacheOfPrice_list ;

        _model.model_internal::_price_listIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isPrice_listAvailable && _internal_price_list == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "price_list is required"));
        }

        model_internal::_doValidationCacheOfPrice_list = validationFailures;
        model_internal::_doValidationLastValOfPrice_list = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfSc_remarks : Array = null;
    model_internal var _doValidationLastValOfSc_remarks : String;

    model_internal function _doValidationForSc_remarks(valueIn:Object):Array
    {
        var value : String = valueIn as String;

        if (model_internal::_doValidationCacheOfSc_remarks != null && model_internal::_doValidationLastValOfSc_remarks == value)
           return model_internal::_doValidationCacheOfSc_remarks ;

        _model.model_internal::_sc_remarksIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isSc_remarksAvailable && _internal_sc_remarks == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "sc_remarks is required"));
        }

        model_internal::_doValidationCacheOfSc_remarks = validationFailures;
        model_internal::_doValidationLastValOfSc_remarks = value;

        return validationFailures;
    }
    
    model_internal var _doValidationCacheOfWarehouse_serialnumber_fk : Array = null;
    model_internal var _doValidationLastValOfWarehouse_serialnumber_fk : ArrayCollection;

    model_internal function _doValidationForWarehouse_serialnumber_fk(valueIn:Object):Array
    {
        var value : ArrayCollection = valueIn as ArrayCollection;

        if (model_internal::_doValidationCacheOfWarehouse_serialnumber_fk != null && model_internal::_doValidationLastValOfWarehouse_serialnumber_fk == value)
           return model_internal::_doValidationCacheOfWarehouse_serialnumber_fk ;

        _model.model_internal::_warehouse_serialnumber_fkIsValidCacheInitialized = true;
        var validationFailures:Array = new Array();
        var errorMessage:String;
        var failure:Boolean;

        var valRes:ValidationResult;
        if (_model.isWarehouse_serialnumber_fkAvailable && _internal_warehouse_serialnumber_fk == null)
        {
            validationFailures.push(new ValidationResult(true, "", "", "warehouse_serialnumber_fk is required"));
        }

        model_internal::_doValidationCacheOfWarehouse_serialnumber_fk = validationFailures;
        model_internal::_doValidationLastValOfWarehouse_serialnumber_fk = value;

        return validationFailures;
    }
    

}

}
